package com.zjh.mybase.service;

/*import com.baomidou.mybatisplus.extension.service.IService;
import com.zjh.mybase.model.User;
import org.springframework.stereotype.Service;

public interface UserService extends IService<User> {

}*/

import com.zjh.mybase.mapper.UserMapper;
import com.zjh.mybase.model.User;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    private final UserMapper userMapper;

    public UserService(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    public User getById(Long id) {
        return userMapper.selectById(id);
    }
}

